package com.xunlai.infra.permission.business.converter;

import com.xunlai.infra.permission.business.dao.entity.MembershipsGoods;
import com.xunlai.infra.permission.business.vo.memberships.MembershipsGoodsCreateVo;
import com.xunlai.infra.permission.business.vo.memberships.MembershipsGoodsListVo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author liang
 * @date 8/30/23 9:18 PM
 */
@Mapper
public interface MembershipsGoodsConverter {

    MembershipsGoodsConverter INSTANCE = Mappers.getMapper(MembershipsGoodsConverter.class);

    MembershipsGoods convertCreateVo2Entity(MembershipsGoodsCreateVo membershipsGoodsCreateVo);

    MembershipsGoodsListVo convertEntity2ListVo(MembershipsGoods membershipsGoods);
}
